#pragma once
#include "Communication.h"

class CMessageRecvCtrl : public IMessageRecvCtrl
{
	IMessageCtrlPartFactory* m_partfactory;

	IMessageRecv* m_caRecv;
	IMessageTreament* m_caTreament;
	ThisToStd* m_RecvFun;
	CWinThread* m_recvthread;
public:
	CMessageRecvCtrl(IMessageCtrlPartFactory* factory);
	virtual ~CMessageRecvCtrl();

	virtual DWORD OpenMessageRecv(PVOID param);
	virtual BOOL  CloseMessageRecv();
};